import com.jwpdk.appframework.cache.CacheFactory;
import com.jwpdk.appframework.controller.Dispatcher;
import com.jwpdk.appframework.data.DataMap;
import com.jwpdk.appframework.data.IData;
import com.jwpdk.appframework.data.IDataList;
import com.jwpdk.common.Config;
import com.jwpdk.common.Constant;
import com.jwpdk.dbframework.SqlMap;
import com.jwpdk.dbframework.Transaction;
import com.jwpdk.dbframework.TransactionManager;



public class MainTest {

	/**
	 * @param args
	 * @throws Exception 
	 */
	public static void main(String[] args) throws Exception {
//		 初始化配置文件
		Config.getInstance();
		Dispatcher dispatcher = Dispatcher.getInstance();
		Transaction transaction = new Transaction(Constant.FRAMEWOR_TRANSACTION);
		TransactionManager tManager = TransactionManager.getInstance();
		tManager.beginTransaction(transaction);
		// 初始化缓存
		CacheFactory.getInstance();
		// 初始化ACTION映射
		mainTest();
		
		tManager.endTransaction(transaction);
	}
	public static void mainTest() throws Exception {
		
		SqlMap sm = new SqlMap();
		IData param = new DataMap();
		param.put("FOLDER_ID",0);
		IDataList list= sm.iSelect("SEL_NOTE_DOCLIST",param);
		System.out.println(list);
	}

}
